<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>论坛列表 - 多元社交平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #eff6ff;
            --secondary: #8b5cf6;
            --dark: #1e293b;
            --light: #f8fafc;
            --gray: #64748b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f1f5f9;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: var(--shadow);
            padding: 0.75rem 1.5rem;
        }
        
        .navbar-brand {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .search-container {
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border-radius: 25px;
            border: 1px solid var(--border);
            background-color: var(--light);
            transition: all 0.3s ease;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        
        .search-icon {
            position: absolute;
            left: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .nav-link {
            color: var(--dark);
            font-weight: 500;
            margin: 0 0.5rem;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        /* 筛选区域样式 */
        .filters-container {
            background-color: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            padding: 1.25rem;
            margin-bottom: 2rem;
        }
        
        .filter-section {
            margin-bottom: 1.5rem;
        }
        
        .filter-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--dark);
            font-size: 1.1rem;
        }
        
        .category-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .category-pill {
            background-color: var(--light);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 0.35rem 1rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .category-pill:hover {
            background-color: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .category-pill.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .sort-options {
            display: flex;
            gap: 1rem;
        }
        
        .sort-select {
            flex: 1;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            border: 1px solid var(--border);
            background-color: white;
            font-size: 0.9rem;
        }
        
        .sort-select:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .advanced-toggle {
            color: var(--primary);
            background: none;
            border: none;
            padding: 0;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .advanced-filters {
            display: none;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px dashed var(--border);
        }
        
        .advanced-filters.show {
            display: block;
        }
        
        .filter-group {
            margin-bottom: 1rem;
        }
        
        .filter-label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .range-slider {
            width: 100%;
            accent-color: var(--primary);
        }
        
        .range-values {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--gray);
            margin-top: 0.5rem;
        }
        
        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.9rem;
        }
        
        .btn-apply {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .btn-apply:hover {
            background-color: #2563eb;
        }
        
        .btn-reset {
            background-color: transparent;
            color: var(--gray);
            border: 1px solid var(--border);
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            margin-left: 1rem;
        }
        
        .btn-reset:hover {
            color: var(--dark);
            border-color: var(--gray);
        }
        
        /* 视图切换 */
        .view-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .results-count {
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .view-buttons {
            display: flex;
            gap: 0.5rem;
        }
        
        .view-btn {
            background-color: white;
            border: 1px solid var(--border);
            width: 36px;
            height: 36px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .view-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .view-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 论坛列表样式 */
        .forum-section {
            margin-bottom: 3rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
            position: relative;
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background-color: var(--primary);
        }
        
        .view-all {
            color: var(--primary);
            font-weight: 500;
            text-decoration: none;
            transition: color 0.2s;
        }
        
        .view-all:hover {
            color: #2563eb;
            text-decoration: underline;
        }
        
        .forum-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin-bottom: 1.5rem;
        }
        
        .forum-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .card-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .forum-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .forum-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.25rem;
        }
        
        .forum-details h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .forum-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .card-body {
            padding: 1.25rem;
        }
        
        .forum-description {
            color: var(--dark);
            margin-bottom: 1rem;
            font-size: 0.95rem;
        }
        
        .forum-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .tag.secondary {
            background-color: rgba(139, 92, 246, 0.1);
            color: var(--secondary);
        }
        
        .post-preview {
            border-top: 1px solid var(--border);
            padding-top: 1rem;
        }
        
        .post-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            transition: color 0.2s;
        }
        
        .post-title:hover {
            color: var(--primary);
        }
        
        .post-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .card-footer {
            padding: 0.75rem 1.25rem;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: var(--light);
        }
        
        .forum-actions {
            display: flex;
            gap: 1rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: color 0.2s;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            color: var(--primary);
            background-color: var(--primary-light);
        }
        
        .action-btn.bookmarked {
            color: var(--secondary);
        }
        
        /* 网格布局 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .grid-layout .forum-card {
            margin-bottom: 0;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .grid-layout .card-body {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .grid-layout .forum-description {
            flex: 1;
        }
        
        /* 列表布局 */
        .list-layout .forum-card {
            display: flex;
            flex-direction: row;
        }
        
        .list-layout .forum-icon {
            margin: 1rem;
            flex-shrink: 0;
        }
        
        .list-layout .card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .list-layout .card-header,
        .list-layout .card-body,
        .list-layout .card-footer {
            padding: 1rem;
        }
        
        .list-layout .forum-description {
            margin-bottom: 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .list-layout .forum-tags,
        .list-layout .post-preview {
            display: none;
        }
        
        /* 图片布局 */
        .image-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
        }
        
        .image-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
        }
        
        .image-card:hover {
            transform: translateY(-5px);
        }
        
        .image-container {
            height: 180px;
            overflow: hidden;
        }
        
        .image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .image-card:hover .image-container img {
            transform: scale(1.05);
        }
        
        .image-info {
            padding: 0.75rem;
        }
        
        .image-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .image-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .image-stats {
            display: flex;
            gap: 0.75rem;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .navbar {
                padding: 0.75rem 1rem;
            }
            
            .search-container {
                max-width: 300px;
            }
            
            .sort-options {
                flex-direction: column;
                gap: 0.75rem;
            }
        }
        
        @media (max-width: 768px) {
            .search-container {
                max-width: 100%;
                margin: 1rem 0;
            }
            
            .category-pill {
                padding: 0.3rem 0.75rem;
                font-size: 0.85rem;
            }
            
            .list-layout .forum-card {
                flex-direction: column;
                text-align: center;
            }
            
            .list-layout .forum-icon {
                margin: 1rem auto 0;
            }
            
            .list-layout .card-header {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .list-layout .forum-stats {
                justify-content: center;
            }
            
            .card-footer {
                flex-direction: column;
                gap: 0.75rem;
                align-items: stretch;
            }
            
            .forum-actions {
                justify-content: center;
            }
            
            .btn-reset {
                margin-left: 0;
                margin-top: 0.75rem;
                width: 100%;
            }
            
            .btn-apply {
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-comments"></i> 多元论坛
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarContent">
                <div class="d-flex justify-content-center flex-grow-1">
                    <div class="search-container position-relative">
                        <i class="fas fa-search search-icon"></i>
                        <input type="text" class="search-input" placeholder="搜索论坛、帖子或用户...">
                    </div>
                </div>
                
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-home"></i> 首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#"><i class="fas fa-th-large"></i> 论坛</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-compass"></i> 发现</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-bell"></i> 通知</a>
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="rounded-circle" style="width: 36px; height: 36px; object-fit: cover;">
                        </a>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#"><i class="fas fa-user me-2"></i> 个人中心</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-bookmark me-2"></i> 我的收藏</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-cog me-2"></i> 设置</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-sign-out-alt me-2"></i> 退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="container py-5">
        <h1 class="section-title">论坛列表</h1>
        
        <!-- 筛选区域 -->
        <div class="filters-container">
            <div class="row">
                <div class="col-md-8">
                    <!-- 分类筛选 -->
                    <div class="filter-section">
                        <h3 class="filter-title">论坛分类</h3>
                        <div class="category-pills">
                            <div class="category-pill active">全部</div>
                            <div class="category-pill">技术</div>
                            <div class="category-pill">生活</div>
                            <div class="category-pill">兴趣爱好</div>
                            <div class="category-pill">职场</div>
                            <div class="category-pill">教育</div>
                            <div class="category-pill">艺术</div>
                            <div class="category-pill">健康</div>
                            <div class="category-pill">美食</div>
                            <div class="category-pill">旅行</div>
                        </div>
                    </div>
                    
                    <!-- 排序和时间筛选 -->
                    <div class="filter-section">
                        <h3 class="filter-title">排序方式</h3>
                        <div class="sort-options">
                            <select class="sort-select">
                                <option value="recommended">推荐排序</option>
                                <option value="popular">热门程度</option>
                                <option value="newest">最新创建</option>
                                <option value="most-posts">帖子最多</option>
                                <option value="most-members">成员最多</option>
                            </select>
                            
                            <select class="sort-select">
                                <option value="all-time">所有时间</option>
                                <option value="today">今天</option>
                                <option value="week">本周</option>
                                <option value="month">本月</option>
                                <option value="year">今年</option>
                            </select>
                        </div>
                    </div>
                    
                    <!-- 高级筛选 -->
                    <button class="advanced-toggle" id="advancedToggle">
                        <i class="fas fa-sliders-h"></i>
                        <span>高级筛选</span>
                    </button>
                    
                    <div class="advanced-filters" id="advancedFilters">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="filter-group">
                                    <label class="filter-label">成员数量</label>
                                    <input type="range" min="0" max="50" value="25" class="range-slider" id="memberRange">
                                    <div class="range-values">
                                        <span>0</span>
                                        <span id="memberValue">25k+</span>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="col-md-6">
                                <div class="filter-group">
                                    <label class="filter-label">每日浏览量</label>
                                    <input type="range" min="0" max="10" value="5" class="range-slider" id="viewRange">
                                    <div class="range-values">
                                        <span>0</span>
                                        <span id="viewValue">5k+</span>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="col-md-6">
                                <div class="filter-group">
                                    <label class="filter-label">论坛特性</label>
                                    <div class="checkbox-group">
                                        <label class="checkbox-item">
                                            <input type="checkbox"> 官方认证
                                        </label>
                                        <label class="checkbox-item">
                                            <input type="checkbox"> 活跃论坛
                                        </label>
                                        <label class="checkbox-item">
                                            <input type="checkbox"> 新论坛
                                        </label>
                                        <label class="checkbox-item">
                                            <input type="checkbox"> 有图内容多
                                        </label>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="col-md-6">
                                <div class="filter-group">
                                    <label class="filter-label">内容类型</label>
                                    <div class="checkbox-group">
                                        <label class="checkbox-item">
                                            <input type="checkbox"> 讨论为主
                                        </label>
                                        <label class="checkbox-item">
                                            <input type="checkbox"> 分享为主
                                        </label>
                                        <label class="checkbox-item">
                                            <input type="checkbox"> 问答为主
                                        </label>
                                        <label class="checkbox-item">
                                            <input type="checkbox"> 教程为主
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="col-md-4">
                    <div class="filter-section">
                        <h3 class="filter-title">快速筛选</h3>
                        <div class="checkbox-group">
                            <label class="checkbox-item">
                                <input type="checkbox"> 我已加入的
                            </label>
                            <label class="checkbox-item">
                                <input type="checkbox"> 我收藏的
                            </label>
                            <label class="checkbox-item">
                                <input type="checkbox"> 有新内容的
                            </label>
                            <label class="checkbox-item">
                                <input type="checkbox"> 热门推荐
                            </label>
                        </div>
                        
                        <div style="margin-top: 2rem;">
                            <button class="btn-apply">应用筛选</button>
                            <button class="btn-reset">重置</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 视图控制和结果计数 -->
        <div class="view-controls">
            <div class="results-count">找到 <strong>24</strong> 个符合条件的论坛</div>
            <div class="view-buttons">
                <button class="view-btn active" data-view="standard" title="标准视图">
                    <i class="fas fa-th-list"></i>
                </button>
                <button class="view-btn" data-view="grid" title="网格视图">
                    <i class="fas fa-th-large"></i>
                </button>
                <button class="view-btn" data-view="list" title="列表视图">
                    <i class="fas fa-list"></i>
                </button>
                <button class="view-btn" data-view="image" title="图片视图">
                    <i class="fas fa-images"></i>
                </button>
            </div>
        </div>
        
        <!-- 论坛列表 - 标准布局 -->
        <div class="forum-list standard-layout">
            <!-- 无图论坛 1 -->
            <div class="forum-card">
                <div class="card-header">
                    <div class="forum-info">
                        <div class="forum-icon">
                            <i class="fas fa-laptop-code"></i>
                        </div>
                        <div class="forum-details">
                            <h3>前端开发技术论坛</h3>
                            <div class="forum-stats">
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>12.5k 成员</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-file-alt"></i>
                                    <span>34.2k 帖子</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>今日 2.8k 浏览</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    <p class="forum-description">
                        专注于前端开发技术交流，包括HTML5、CSS3、JavaScript、Vue、React等框架讨论，分享最新行业动态和实战经验，适合前端开发者交流学习。
                    </p>
                    <div class="forum-tags">
                        <span class="tag">JavaScript</span>
                        <span class="tag">Vue</span>
                        <span class="tag">React</span>
                        <span class="tag">CSS</span>
                    </div>
                    <div class="post-preview">
                        <div class="post-title">
                            <a href="#" class="text-decoration-none text-dark">如何优化大型Vue项目的性能？分享几个实用技巧</a>
                        </div>
                        <div class="post-meta">
                            <span>2小时前 · 李明</span>
                            <span><i class="fas fa-comment"></i> 42 评论</span>
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <button class="action-btn">
                        <i class="fas fa-user-plus"></i>
                        <span>加入论坛</span>
                    </button>
                    <div class="forum-actions">
                        <button class="action-btn">
                            <i class="fas fa-star"></i>
                            <span>推荐</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 无图论坛 2 -->
            <div class="forum-card">
                <div class="card-header">
                    <div class="forum-info">
                        <div class="forum-icon" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">
                            <i class="fas fa-camera"></i>
                        </div>
                        <div class="forum-details">
                            <h3>摄影爱好者论坛</h3>
                            <div class="forum-stats">
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>8.7k 成员</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-file-alt"></i>
                                    <span>19.3k 帖子</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>今日 1.5k 浏览</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    <p class="forum-description">
                        汇聚摄影爱好者，分享摄影作品、器材评测、拍摄技巧和后期处理经验。无论你是专业摄影师还是摄影新手，都能在这里找到志同道合的朋友。
                    </p>
                    <div class="forum-tags">
                        <span class="tag secondary">人像</span>
                        <span class="tag secondary">风光</span>
                        <span class="tag secondary">器材</span>
                        <span class="tag secondary">后期</span>
                    </div>
                    <div class="post-preview">
                        <div class="post-title">
                            <a href="#" class="text-decoration-none text-dark">尼康Z7 II与索尼A7R IV对比评测，全画幅微单该如何选择？</a>
                        </div>
                        <div class="post-meta">
                            <span>昨天 · 王摄影</span>
                            <span><i class="fas fa-comment"></i> 87 评论</span>
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <button class="action-btn">
                        <i class="fas fa-user-plus"></i>
                        <span>加入论坛</span>
                    </button>
                    <div class="forum-actions">
                        <button class="action-btn">
                            <i class="fas fa-star"></i>
                            <span>推荐</span>
                        </button>
                        <button class="action-btn bookmarked">
                            <i class="fas fa-bookmark"></i>
                            <span>已收藏</span>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 多图论坛 -->
            <div class="forum-card">
                <div class="card-header">
                    <div class="forum-info">
                        <div class="forum-icon" style="background-color: rgba(236, 72, 153, 0.1); color: #ec4899;">
                            <i class="fas fa-utensils"></i>
                        </div>
                        <div class="forum-details">
                            <h3>美食分享论坛</h3>
                            <div class="forum-stats">
                                <div class="stat-item">
                                    <i class="fas fa-user"></i>
                                    <span>7.2k 成员</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-file-alt"></i>
                                    <span>15.8k 帖子</span>
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i>
                                    <span>今日 3.2k 浏览</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    <p class="forum-description">
                        分享美食制作方法、餐厅推荐、食材选购技巧，探讨各地特色美食文化。这里有大量美食图片和详细做法分享。
                    </p>
                    <div class="forum-tags">
                        <span class="tag" style="background-color: rgba(236, 72, 153, 0.1); color: #ec4899;">家常菜</span>
                        <span class="tag" style="background-color: rgba(236, 72, 153, 0.1); color: #ec4899;">烘焙</span>
                        <span class="tag" style="background-color: rgba(236, 72, 153, 0.1); color: #ec4899;">探店</span>
                        <span class="tag" style="background-color: rgba(236, 72, 153, 0.1); color: #ec4899;">食材</span>
                    </div>
                    
                    <div class="post-preview">
                        <div class="post-title">
                            <a href="#" class="text-decoration-none text-dark">周末自制草莓提拉米苏，零失败配方分享</a>
                        </div>
                        <div class="post-images" style="display: flex; gap: 0.5rem; margin: 0.75rem 0;">
                            <img src="https://picsum.photos/200/150?random=20" alt="草莓提拉米苏图片1" class="rounded" style="width: 32%; height: 100px; object-fit: cover;">
                            <img src="https://picsum.photos/200/150?random=21" alt="草莓提拉米苏图片2" class="rounded" style="width: 32%; height: 100px; object-fit: cover;">
                            <img src="https://picsum.photos/200/150?random=22" alt="草莓提拉米苏图片3" class="rounded" style="width: 32%; height: 100px; object-fit: cover;">
                        </div>
                        <div class="post-meta">
                            <span>3天前 · 陈美食</span>
                            <span><i class="fas fa-comment"></i> 126 评论</span>
                        </div>
                    </div>
                </div>
                <div class="card-footer">
                    <button class="action-btn">
                        <i class="fas fa-user-plus"></i>
                        <span>加入论坛</span>
                    </button>
                    <div class="forum-actions">
                        <button class="action-btn">
                            <i class="fas fa-star"></i>
                            <span>推荐</span>
                        </button>
                        <button class="action-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 高级筛选切换
            const advancedToggle = document.getElementById('advancedToggle');
            const advancedFilters = document.getElementById('advancedFilters');
            
            advancedToggle.addEventListener('click', function() {
                advancedFilters.classList.toggle('show');
                const icon = this.querySelector('i');
                if (advancedFilters.classList.contains('show')) {
                    icon.classList.remove('fa-sliders-h');
                    icon.classList.add('fa-chevron-up');
                } else {
                    icon.classList.remove('fa-chevron-up');
                    icon.classList.add('fa-sliders-h');
                }
            });
            
            // 范围滑块值显示
            const memberRange = document.getElementById('memberRange');
            const memberValue = document.getElementById('memberValue');
            const viewRange = document.getElementById('viewRange');
            const viewValue = document.getElementById('viewValue');
            
            memberRange.addEventListener('input', function() {
                memberValue.textContent = `${this.value}k+`;
            });
            
            viewRange.addEventListener('input', function() {
                viewValue.textContent = `${this.value}k+`;
            });
            
            // 分类筛选交互
            const categoryPills = document.querySelectorAll('.category-pill');
            categoryPills.forEach(pill => {
                pill.addEventListener('click', function() {
                    categoryPills.forEach(p => p.classList.remove('active'));
                    this.classList.add('active');
                    // 这里可以添加筛选逻辑
                });
            });
            
            // 视图切换
            const viewButtons = document.querySelectorAll('.view-btn');
            const forumList = document.querySelector('.forum-list');
            
            viewButtons.forEach(button => {
                button.addEventListener('click', function() {
                    viewButtons.forEach(b => b.classList.remove('active'));
                    this.classList.add('active');
                    
                    const viewType = this.getAttribute('data-view');
                    
                    // 移除所有视图类
                    forumList.classList.remove('standard-layout', 'grid-layout', 'list-layout', 'image-grid');
                    
                    // 添加选中的视图类
                    if (viewType === 'standard') {
                        forumList.classList.add('standard-layout');
                    } else if (viewType === 'grid') {
                        forumList.classList.add('grid-layout');
                    } else if (viewType === 'list') {
                        forumList.classList.add('list-layout');
                    } else if (viewType === 'image') {
                        forumList.classList.add('image-grid');
                        // 图片视图需要不同的结构，这里可以添加转换逻辑
                    }
                });
            });
            
            // 收藏按钮交互
            const bookmarkButtons = document.querySelectorAll('.action-btn:has(.fa-bookmark)');
            bookmarkButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (icon.classList.contains('far')) {
                        // 未收藏状态，点击后变为已收藏
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('bookmarked');
                    } else {
                        // 已收藏状态，点击后取消收藏
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('bookmarked');
                    }
                });
            });
            
            // 应用筛选按钮
            const applyButton = document.querySelector('.btn-apply');
            applyButton.addEventListener('click', function() {
                // 这里可以添加筛选逻辑
                alert('筛选已应用！');
            });
            
            // 重置按钮
            const resetButton = document.querySelector('.btn-reset');
            resetButton.addEventListener('click', function() {
                // 重置所有筛选条件
                categoryPills.forEach(p => p.classList.remove('active'));
                categoryPills[0].classList.add('active');
                
                document.querySelectorAll('select.sort-select').forEach(select => {
                    select.selectedIndex = 0;
                });
                
                document.querySelectorAll('input[type="checkbox"]').forEach(checkbox => {
                    checkbox.checked = false;
                });
                
                memberRange.value = 25;
                memberValue.textContent = '25k+';
                viewRange.value = 5;
                viewValue.textContent = '5k+';
                
                advancedFilters.classList.remove('show');
                advancedToggle.querySelector('i').classList.remove('fa-chevron-up');
                advancedToggle.querySelector('i').classList.add('fa-sliders-h');
            });
        });
    </script>
</body>
</html>

